Showing the removable devices is potentially a security risk (as
they include network shares). Also, a nautilus launched from there
can't be used, so it's just a way to overload the system.
https://bugzilla.gnome.org/show_bug.cgi?id=681143
_init: function() {
this.parent(_("Removable Devices"), 'media-removable', St.IconType.FULLCOLOR);
+ this.showInLockScreen = false;
this._mounts = [];
this.isTransient = false;
this.isChat = false;
this.isMuted = false;
+ this.showInLockScreen = true;
this.notifications = [];
},
},
_summaryItemAdded: function(tray, item, dontUpdateVisibility) {
- // Ignore transient sources
- if (item.source.isTransient)
+ // Ignore transient sources, or sources explicitly marked not to show
+ // in the lock screen
+ if (item.source.isTransient || !item.source.showInLockScreen)
return;
let obj = {